﻿@namespace MudBlazor
@using MudBlazor.Utilities

@if (!DisableToolbar)
{
    <MudToolBar Class="@Classnames" Style="@Style">
        @ChildContent
    </MudToolBar>
}


@code {
    protected string Classnames =>
    new CssBuilder("mud-picker-toolbar")
      .AddClass($"mud-theme-{Color.ToDescriptionString()}")
      .AddClass("mud-picker-toolbar-landscape", Orientation == Orientation.Landscape && PickerVariant == PickerVariant.Static)
      .AddClass(Class)
    .Build();

    [Parameter] public string Class { get; set; }
    [Parameter] public string Style { get; set; }
    [Parameter] public bool DisableToolbar { get; set; }
    [Parameter] public Orientation Orientation { get; set; }
    [Parameter] public PickerVariant PickerVariant { get; set; }
    [Parameter] public Color Color { get; set; }
    [Parameter] public RenderFragment ChildContent { get; set; }
}
